import requests

def send_requests(method, url, header, data=None):
    header = eval(header)
    data = eval(data)

    if method == 'get':
        res = requests.get(url, headers=header, json=data)
    elif method == 'post':
        res = requests.post(url, headers=header, json=data)
    elif method == 'delete':
        res = requests.delete(url, headers=header, json=data)

    return res

